package com.demo.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.RequiredArgsConstructor;

import java.util.Objects;

/**
 * @author zhiqiang
 */
@Data
//@NoArgsConstructor
//@AllArgsConstructor
public class Student {
    /**
     * 学生id
     */
    private String id;

    /**
     * 学生姓名
     */
    private String name;

    public void aa(String a){
        System.out.println("我是："+a);
    }

    public Student() {
        System.out.println("我是无参构造");
    }

    public Student(String id, String name) {
        System.out.println("我是有参构造");
        this.id = id;
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
